#include <stdio.h>
#include <stdlib.h>
#include "my_mem.h"
#include  "func.h"
void adc(void)
{
	printf("adc\n");
}

int main(int argc, char *argv[]) {
	u8 *p=0,i=0;
	qfunc func1=adc;
	func[0] = adc;
	func[1] = adc;
	func[2] = adc;
	funcP = func;
	func[0]();
	func[1]();
	func[2]();
	(*(funcP+0))();
	(*(funcP+1))();
	(*(funcP+2))();
	func1();
	mem_init();
	p = mymalloc(32/4);
	for(i=1;i<9;i++){
		*p=i;
	}
	for(i=1;i<9;i++){
		printf("*p:%d\n",*p);
	}
	printf("--------------------------------\n");
	myfree(p);
	for(i=1;i<9;i++){
		printf("*p:%d\n",*p);
	}	
	return 0;
}
